//
//  XSJZZJJWebViewController.m
//  JJHome
//
//  Created by Meng Chen on 16/8/17.
//  Copyright © 2016年 LeeRay. All rights reserved.
//

#import "XSJZZJJWebViewController.h"

@interface XSJZZJJWebViewController ()<UIWebViewDelegate>
@property (nonatomic ,strong)UIWebView *web;
@end

@implementation XSJZZJJWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title = @"免责声明";
    self.web = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height - UXY_NAV_HEIGHT)];
    [self.view addSubview:_web];
    NSString *filePath = [[NSBundle mainBundle]pathForResource:@"用户协议" ofType:@"html"];
    
    NSString *htmlString = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
    
    [self.web loadHTMLString:htmlString baseURL:[NSURL URLWithString:filePath]];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
